package patronMementoo;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.JButton;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;




/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class NewJDialogRegistrarCliente extends javax.swing.JDialog {
	private JPanel jPanelRegistrarCliente;
	private JLabel jLabel4;
	private JButton jButtonrecuperarestado;
	private JTextField jTxtApellido;
	private JButton jButtonguadarestado;
	private JButton JBtoClientBuscar;
	private JTextField jTxtTelefono;
	private JTextField jTxtNombre;
	private JTextField jTxtCedula;
	private JButton jBtoSalir;
	private JLabel jLabel1;
	private JButton jBtoAgregar;
	private JLabel jLblApellido;
	private JLabel jLblCedula_Cliente;

	/**
	* Auto-generated main method to display this JDialog
	*/
	
	public NewJDialogRegistrarCliente(JFrame frm,
			ControladorCliente controladorCliente) {
		// TODO Auto-generated constructor stub
		super(frm);
		initGUI();
	}
	

	private void initGUI() {
		try {
			{
				getContentPane().setLayout(null);
				this.setTitle("Registrar Cliente");
				this.setFont(new java.awt.Font("Comic Sans MS",3,14));
				{
					jPanelRegistrarCliente = new JPanel();
					getContentPane().add(jPanelRegistrarCliente);
					//jPanelRegistrarCliente.setLayout(jPanelRegistrarClienteLayout);
					jPanelRegistrarCliente.setBounds(42, 32, 424, 316);
					jPanelRegistrarCliente.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0,0,0)));
					jPanelRegistrarCliente.setLayout(null);
					jPanelRegistrarCliente.setBackground(new java.awt.Color(237,206,69));
					{
						jLblCedula_Cliente = new JLabel();
						jPanelRegistrarCliente.add(jLblCedula_Cliente);
						jLblCedula_Cliente.setText("Cedula");
						jLblCedula_Cliente.setBounds(28, 28, 83, 15);
						jLblCedula_Cliente.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jLblApellido = new JLabel();
						jPanelRegistrarCliente.add(jLblApellido);
						jLblApellido.setText("Apellido");
						jLblApellido.setBounds(28, 114, 83, 15);
						jLblApellido.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jBtoAgregar = new JButton();
						jPanelRegistrarCliente.add(jBtoAgregar);
						jBtoAgregar.setText("Agregar");
						jBtoAgregar.setBounds(7, 268, 142, 22);
						jBtoAgregar.setFont(new java.awt.Font("Comic Sans MS",3,14));
						jBtoAgregar.setEnabled(false);
					}
					{
						jLabel1 = new JLabel();
						jPanelRegistrarCliente.add(jLabel1);
						jLabel1.setText("Telefono");
						jLabel1.setBounds(28, 158, 83, 15);
						jLabel1.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jBtoSalir = new JButton();
						jPanelRegistrarCliente.add(jBtoSalir);
						jBtoSalir.setText("Salir");
						jBtoSalir.setBounds(311, 268, 84, 22);
						jBtoSalir.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jLabel4 = new JLabel();
						jPanelRegistrarCliente.add(jLabel4);
						jLabel4.setText("Nombre");
						jLabel4.setBounds(28, 71, 83, 15);
						jLabel4.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jTxtCedula = new JTextField();
						jPanelRegistrarCliente.add(jTxtCedula);
						jTxtCedula.setBounds(123, 25, 164, 22);
						jTxtCedula.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jTxtNombre = new JTextField();
						jPanelRegistrarCliente.add(jTxtNombre);
						jTxtNombre.setBounds(123, 68, 164, 22);
						jTxtNombre.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jTxtApellido = new JTextField();
						jPanelRegistrarCliente.add(jTxtApellido);
						jTxtApellido.setBounds(123, 111, 164, 22);
						jTxtApellido.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jTxtTelefono = new JTextField();
						jPanelRegistrarCliente.add(jTxtTelefono);
						jTxtTelefono.setBounds(123, 155, 164, 22);
						jTxtTelefono.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						JBtoClientBuscar = new JButton();
						jPanelRegistrarCliente.add(JBtoClientBuscar);
						JBtoClientBuscar.setText("Buscar");
						JBtoClientBuscar.setBounds(311, 25, 101, 22);
						JBtoClientBuscar.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jButtonguadarestado = new JButton();
						jPanelRegistrarCliente.add(jButtonguadarestado);
						jButtonguadarestado.setText("Guardar estado");
						jButtonguadarestado.setBounds(7, 235, 166, 22);
						jButtonguadarestado.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jButtonrecuperarestado = new JButton();
						jPanelRegistrarCliente.add(jButtonrecuperarestado);
						jButtonrecuperarestado.setText("Recuperar Estado");
						jButtonrecuperarestado.setBounds(204, 235, 181, 22);
						jButtonrecuperarestado.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
				}
			}
			this.setSize(530, 401);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}


	public JPanel getjPanelRegistrarCliente() {
		return jPanelRegistrarCliente;
	}


	public JLabel getjLabel4() {
		return jLabel4;
	}


	public JTextField getjTxtApellido() {
		return jTxtApellido;
	}


	public JTextField getjTxtTelefono() {
		return jTxtTelefono;
	}


	public JTextField getjTxtNombre() {
		return jTxtNombre;
	}


	public JTextField getjTxtCedula() {
		return jTxtCedula;
	}


	public JButton getjBtoSalir() {
		return jBtoSalir;
	}


	public JLabel getjLabel1() {
		return jLabel1;
	}


	public JButton getjBtoAgregar() {
		return jBtoAgregar;
	}


	public JLabel getjLblApellido() {
		return jLblApellido;
	}


	public JLabel getjLblCedula_Cliente() {
		return jLblCedula_Cliente;
	}


	public JButton getJBtoClientBuscar() {
		return JBtoClientBuscar;
	}

	public void addListener(ActionListener actionListener) {
		this.jButtonguadarestado.addActionListener(actionListener);
		this.jButtonrecuperarestado.addActionListener(actionListener);
	}


	public JButton getjButtonrecuperarestado() {
		return jButtonrecuperarestado;
	}


	public JButton getjButtonguadarestado() {
		return jButtonguadarestado;
	}
}
